<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" th:with="title='精品书城',active='home'"
      xmlns="http://www.w3.org/1999/html">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>精品书城-管理员首页</title>
    <link rel="stylesheet" type="text/css" href="http://localhost:8894/css/reset.css">
    <link rel="stylesheet" type="text/css" href="http://localhost:8894/css/main.css">
    <script type="text/javascript" src="http://localhost:8894/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="http://localhost:8894/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="http://localhost:8894/js/slide.js"></script>
</head>
<body>
<div class="header_con">
    <div class="header">
        <div class="welcome fl">欢迎来到精品书城!</div>
        <div class="fr">
            <div class="login_btn fl" th:if="${session.uaccount} ne null">
                <a href="">
                    欢迎您：<em th:text="${session.uaccount}"></em>
                </a>
                <span>|</span>
                <a href="http://localhost:8894/goods/toaddgoods">添加商品</a>
                <span>|</span>
                <a href="http://localhost:8894/goods/quit">退出</a>
            </div>
            <div class="login_btn fl" th:if="${session.uaccount} eq null">
                <a href="http://localhost:8893/admin/tologin">
                    请您登陆
                </a>
            </div>
        </div>
    </div>
</div>
<div class="search_bar clearfix">
    <a th:href="@{'getAll?uaccount='+${session.uaccount}}" class="logo fl"><img src="http://localhost:8894/img/shucheng.jpg"></a>
    <div class="search_con fl">
        <form action="/goods/mgetOne" method="get">
            <input type="text" class="input_text fl" name="name" placeholder="搜索商品">
            <input type="submit" class="input_btn fr" name="" value="搜索">
        </form>
    </div>

</div>
<form action="/goods/shop" method="get">
    <div class="navbar_con">
        <div class="navbar">
            <h1 class="fl">全部商品分类</h1>
            <ul class="navlist fl">
                <li><a href="#">首页</a></li>
            </ul>
        </div>
    </div>


    <div class="center_con clearfix">
        <ul class="subnav fl">
            <li><a href="#model01" class="tuili">推理幻想</a></li>
            <li><a href="#model02" class="guofeng">国风文化</a></li>
            <li><a href="#model03" class="xingqu">兴趣培养</a></li>
            <li><a href="#model04" class="jingdian">经典名著</a></li>
        </ul>
        <div class="slide fl">
            <ul class="slide_pics">
                <li><img src="http://localhost:8894/img/lunbo01.jpg" alt="幻灯片"></li>
                <li><img src="http://localhost:8894/img/lunbo02.jpg" alt="幻灯片"></li>
                <li><img src="http://localhost:8894/img/lunbo03.jpg" alt="幻灯片"></li>
                <li><img src="http://localhost:8894/img/lunbo04.jpg" alt="幻灯片"></li>
            </ul>
            <div class="prev"></div>
            <div class="next"></div>
            <ul class="points"></ul>
        </div>
        <div class="adv fl">
            <a href="#"><img src="http://localhost:8894/img/ce01.jpg"></a>
            <a href="#"><img src="http://localhost:8894/img/ce02.jpg"></a>
        </div>
    </div>
    <div class="list_model">
        <div class="list_title clearfix">
            <h3 class="fl" id="model01">推理幻想</h3>
<!--            <div class="subtitle fl">-->
<!--                <span>|</span>-->
<!--                <a href="#">脉动</a>-->
<!--                <a href="#">可乐</a>-->
<!--                <a href="#">冰冻矿泉水</a>-->
<!--            </div>-->
        </div>
        <div class="goods_con clearfix">
            <div class="goods_banner fl"><img src="http://localhost:8894/img/banner1.jpg"></div>
            <ul class="goods_list fl" style="overflow-y:auto">
                <!--/*@thymesVar id="goods1" type=""*/-->
                <li th:each="goods:${goods1}">
                    <input style="top: 1px;display: none" type="checkbox" name="che" th:value="${goods.gid}" >
                    <h4 th:text="${goods.gname}"></h4>
                    <a th:href="@{'http://localhost:8894/goods/delDetail?gid='+${goods.gid}}"><img th:src="${goods.gremain}" ></a>
                    <!-- <a href="javascript:void(0)" onclick="AddCart({$t:[itemid]});">加入购物车</a>-->
                    <div class="prize" th:text="'￥'+${goods.gprice}"></div>
                </li>
            </ul>
        </div>
    </div>
    <div class="list_model">
        <div class="list_title clearfix">
            <h3 class="fl" id="model02">国风文化</h3>

        </div>

        <div class="goods_con clearfix">
            <div class="goods_banner fl"><img src="http://localhost:8894/img/banner2.jpg"></div>
            <ul class="goods_list fl" style="overflow-y: auto">
                <li th:each="goods:${goods2}">
                    <input style="top: 1px;display: none" type="checkbox" name="che" th:value="${goods.gid}" >
                    <h4 th:text="${goods.gname}"></h4>
                    <a th:href="@{'http://localhost:8894/goods/delDetail?gid='+${goods.gid}}"><img th:src="${goods.gremain}" ></a>
                    <!-- <a href="javascript:void(0)" onclick="AddCart({$t:[itemid]});">加入购物车</a>-->
                    <div class="prize" th:text="'￥'+${goods.gprice}"></div>
                </li>
            </ul>
        </div>
    </div>

    <div class="list_model">
        <div class="list_title clearfix">
            <h3 class="fl" id="model03">兴趣培养</h3>

        </div>

        <div class="goods_con clearfix">
            <div class="goods_banner fl"><img src="http://localhost:8894/img/banner3.jpg"></div>
            <ul class="goods_list fl" style="overflow-y:auto;">
                <li th:each="goods:${goods3}">
                    <input style="top: 1px;display: none" type="checkbox" name="che" th:value="${goods.gid}" >
                    <h4 th:text="${goods.gname}"></h4>
                    <a th:href="@{'http://localhost:8894/goods/delDetail?gid='+${goods.gid}}"><img th:src="${goods.gremain}" ></a>
                    <!-- <a href="javascript:void(0)" onclick="AddCart({$t:[itemid]});">加入购物车</a>-->
                    <div class="prize" th:text="'￥'+${goods.gprice}"></div>
                </li>
            </ul>
        </div>
    </div>

    <div class="list_model">
        <div class="list_title clearfix">
            <h3 class="fl" id="model04">经典名著</h3>
        </div>
        <div class="goods_con clearfix">
            <div class="goods_banner fl"><img src="http://localhost:8894/img/banner4.jpg"></div>
            <ul class="goods_list fl" style="overflow-y:auto">
                <li th:each="goods:${goods4}">
                    <input style="top: 1px;display: none" type="checkbox" name="che" th:value="${goods.gid}" >
                    <h4 th:text="${goods.gname}"></h4>
                    <a th:href="@{'http://localhost:8894/goods/delDetail?gid='+${goods.gid}}"><img th:src="${goods.gremain}" ></a>
                    <!-- <a href="javascript:void(0)" onclick="AddCart({$t:[itemid]});">加入购物车</a>-->
                    <div class="prize" th:text="'￥'+${goods.gprice}"></div>
                </li>
            </ul>
        </div>
    </div>
</form>
<div class="footer">
    <div class="foot_link">
        <a href="#">关于我们</a>
        <span>|</span>
        <a href="#">联系我们</a>
        <span>|</span>
        <a href="#">招聘人才</a>
        <span>|</span>
        <a href="#">友情链接</a>
    </div>
    <p>CopyRight © 2021 人生无限公司 All Rights Reserved</p>
    <p>电话：88888888    河南省洛阳市洛阳理工学院开元小区</p>
</div>
</body>
</html>